import Http from './Http'

class UserHttp extends Http{
    static addCart({userId,id}){
        return this.request({
            url:'/api/addCart',
            method:'post',
            data:{
                userId,
                id
            }
        })
    }
    static login({username,pwd}){
        return this.request({
            url:'/api/login',
            method:'post',
            data:{
                username,
                pwd
            }
        })
    }
    static logout(){
        return this.request({
            url:'/api/logout',
            method:'post'
        })
    }
}
export default UserHttp